package com.future.gateway.filter.constant;


import java.awt.*;
import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName : VerficationCode
 * @Author : lby
 * @Date: 2020/11/30 12:00
 * @Description : 登陆验证码实体类
 */
public class VerficationCode {
    /**
     * \
     * 图片宽度
     */
    public static final int IMG_WIDTH = 100;

    /**
     * \
     * 图片高度
     */
    public static final int IMG_HEIGH = 40;

    /**
     * 图片干扰线大小
     */
    public static final int DISTURB_LINE_SIZE = 15;


    /**
     * 算法正则表达式
     */
    public static final String EXPRESSION = "\u0030\u0031\u0032\u0033\u0034\u0035\u0036\u0037\u0038\u0039\u002b\u002d\u002a";

    /**
     * 验证码字体
     */
    public static final Font FONT = new Font("黑体", Font.BOLD + Font.ITALIC, 25);

    /**
     * 计算规则
     */
    public static final Map<String, String> RULES = new HashMap<String, String>();

    static {
        RULES.put("+", "10");
        RULES.put("-", "11");
        RULES.put("*", "12");
//        RULES.put("÷","11");


    }

    /**
     * 验证码计算结果
     */
    public static int CODE_RESULT;

    /**
     * 随机数
     */
    public static String RANDOM;

    /**
     * 验证码前缀
     */
    public static String CODE_PREFIX = "FUTURE_LOGIN_CODE";

}
